<?php
  $conn = new mysqli('localhost', 'zp', 'Skxtay77', 'ylh');
  $sql = "SELECT * FROM user";
  $res = $conn->query($sql);
  $rows = $res->fetch_all(MYSQLI_ASSOC);
  echo(json_encode($rows));
?>
